package com.wuren.faceSwiping.admin.controller;


import com.wuren.faceSwiping.admin.service.AdminService;
import com.wuren.faceSwiping.helper.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RequestMapping("/admin/user")
@RestController
public class AdminController {

    @Autowired
    private AdminService adminService;

    @GetMapping("/list")
    public Result queryAdmin(){
        return new Result("200","查询成功",adminService.queryAdmin());
    }

}
